package com.tt.fashionWebSite.domain;

import javax.persistence.*;
import java.io.Serializable;

@SuppressWarnings("serial")
@Entity
@Table(name = "loai_dm_sp")
@NamedQueries({
        @NamedQuery(name = "getProductList",query = "SELECT u FROM LoaiDanhMucSanPham u") ,
})

public class LoaiDanhMucSanPham implements Serializable {

    public static final String GET_PRODUCT_LIST = "getProductList";

   @Id
   @Column(name = "MA_LOAI_DM_SP")
   private String maLoaiDMSP;

   @Column(name = "TEN_LOAI_DM_SP")
   private String tenLoaiDMSP;

   @Column(name = "PHAN_LOAI")
   private String phanLoai;

   @ManyToOne
   @JoinColumn(name = "MA_LOAI")
   private LoaiDanhMuc loaiDanhMuc;

   public String getMaLoaiDMSP() {
      return maLoaiDMSP;
   }

   public void setMaLoaiDMSP(String maLoaiDMSP) {
      this.maLoaiDMSP = maLoaiDMSP;
   }

   public String getTenLoaiDMSP() {
      return tenLoaiDMSP;
   }

   public void setTenLoaiDMSP(String tenLoaiDMSP) {
      this.tenLoaiDMSP = tenLoaiDMSP;
   }

   public LoaiDanhMuc getLoaiDanhMuc() {
      return loaiDanhMuc;
   }

   public void setLoaiDanhMuc(LoaiDanhMuc loaiDanhMuc) {
      this.loaiDanhMuc = loaiDanhMuc;
   }

   public String getPhanLoai() {
      return phanLoai;
   }

   public void setPhanLoai(String phanLoai) {
      this.phanLoai = phanLoai;
   }
}
